package com.ailanyin.admin.modules.region.service.impl;

import com.ailanyin.admin.modules.region.mapper.RegionMapper;
import com.ailanyin.admin.modules.region.service.RegionService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * @author ailanyin
 * @version 1.0
 * @since 2022/3/7 0007 上午 9:28
 */
@Service
public class RegionServiceImpl implements RegionService {

    @Resource
    private RegionMapper regionMapper;

    @Override
    public List<Map<String, String>> getAllProvince() {
        return regionMapper.getAllProvince();
    }

    @Override
    public List<Map<String, String>> getAllCityByProvinceCode(String provinceCode) {
        return regionMapper.getAllCityByProvinceCode(provinceCode);
    }

    @Override
    public List<Map<String, String>> getAllAreaByCityCode(String cityCode) {
        return regionMapper.getAllAreaByCityCode(cityCode);
    }

    @Override
    public List<Map<String, String>> getAllStreetByAreaCode(String areaCode) {
        return regionMapper.getAllStreetByAreaCode(areaCode);
    }
}
